<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php use_helper('jQuery')?>

<script type="text/javascript">
    $(function() {        
        $("a.back").button({
            icons: {
                primary: "ui-icon-circle-arrow-w"
            }
        });
        $("input:submit").button({
            icons: {
                primary: "ui-icon-disk"
            }
        });
    });
</script>

<?php echo form_tag_for($form, '@candidate') ?>
    <table>
    <tfoot>
        <tr>
            <td colspan="2">
                <a class="back" 
                   href="<?php echo $form->isNew() ? url_for('candidate') : url_for('candidate_show', $form->getObject()) ?>">
                    Cancelar
                </a>
                <input type="submit" value="Guardar" />
            </td>
        </tr>
    </tfoot>
    <tbody>
        <?php echo $form ?>
    </tbody>
    </table>
</form>
